package ioperation;

import book.Book;
import book.BookList;

public class ShowOperation implements IOPeration{
    @Override
    public void work(BookList bookList) {
        System.out.println("书籍展现");
        //获取书籍的数量
        int currentSize=bookList.getUsedSize();
        int i=0;
        for(;i<currentSize;i++){
            System.out.println(bookList.getBook(i));
        }
    }
}
